package com.kehutong.payfees.entity.record;

import java.math.BigDecimal;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

import com.kehutong.payfees.enums.WaterSource;

/**
 * 交易记录
 * 
 * @author liuzhen (liuxing521a@163.com)
 * @createTime 2017年3月21日下午3:09:23
 */
@Table(value = "t_accwater", comment="交易记录")
public class AccWater extends Entity {
	
	/** 收款*/
	public static final String INC_AMT = "1";
	/** 付款*/
	public static final String DEC_AMT = "0";

	private static final long serialVersionUID = 2604261834948680060L;

	public AccWater(String id) {
		super(id);
	}

	@Column(length = 64, comment = "订单号")
	private String orderNo;

	@Column(comment = "对应账号")
	private String accNo;
	
	@Column(comment = "记账类型[-:出账; +:入账]")
	private String type;

	@Column(comment = "记账来源")
	private WaterSource source;
	
	@Column(comment = "流水记录(元)")
	private BigDecimal amt;

	@Column(comment = "期初余额(元)")
	private BigDecimal beforeAmt;

	@Column(comment = "期末余额(元)")
	private BigDecimal afterAmt;

	@Column(comment = "记账人编号(自动记账为空，手动记账非空)")
	private String opCode;

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getAccNo() {
		return accNo;
	}

	public void setAccNo(String accNo) {
		this.accNo = accNo;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public WaterSource getSource() {
		return source;
	}

	public void setSource(WaterSource source) {
		this.source = source;
	}

	public BigDecimal getAmt() {
		return amt;
	}

	public void setAmt(BigDecimal amt) {
		this.amt = amt;
	}

	public BigDecimal getBeforeAmt() {
		return beforeAmt;
	}

	public void setBeforeAmt(BigDecimal beforeAmt) {
		this.beforeAmt = beforeAmt;
	}

	public BigDecimal getAfterAmt() {
		return afterAmt;
	}

	public void setAfterAmt(BigDecimal afterAmt) {
		this.afterAmt = afterAmt;
	}

	public String getOpCode() {
		return opCode;
	}

	public void setOpCode(String opCode) {
		this.opCode = opCode;
	}
}